package com.haoran.dwz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.haoran.dwz.domain.entities.SystemParam;
import com.haoran.dwz.repository.SystemParamRepository;
import com.haoran.dwz.service.SystemSetupService;

@Service
public class SystemSetupServiceImpl implements SystemSetupService {

	@Autowired
	private SystemParamRepository systemParamRepository;

	@Override
	public boolean isSetup() {
		return (null != systemParamRepository.findByParamKey(SystemParam.SYS_CREATE_DATE_KEY));
	}

}
